package com.innovamed.websocket.monitor;

import javax.annotation.PreDestroy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.innovamed.websocket.plugin.AppPlugin;

/**
* 
* Copyright: Copyright (c) 2019 Jun_Zhou
* 
* @ClassName: BootMonitor.java
* @Description: SpringBoot项目的管理器;
* 
* @version: v1.0.0
* @author: JunZhou
* @Email: 1769676159@qq.com
* @Site: CERNO
* @date: 2019年9月27日 下午4:02:24
 */

@Component
public class Destoryer {
    
	@Autowired
	AppPlugin appPlugin;
	
    @SuppressWarnings("static-access")
	@PreDestroy
    public void destory() throws Exception {
    	appPlugin.destoryRabbitMQCustomer();
    }
}
